//
//  ArmGroupLabel+ArmGroupLabel.m
//  ClinicalCollections
//
//  Created by janakiraman gopinath on 5/18/13.
//  Copyright (c) 2013 GOPI. All rights reserved.
//

#import "ArmGroupLabel+ArmGroupLabel.h"

@implementation ArmGroupLabel (ArmGroupLabel)

+ (void) armGroupLabel:(NSArray *) armGroupLabels
            forContext:(NSManagedObjectContext *)context
       forIntervention:(Intervention *)intervention
{
    for (NSString *armGroupLabelName in armGroupLabels) {
        ArmGroupLabel  *armGroupLabel = (ArmGroupLabel *)[NSEntityDescription insertNewObjectForEntityForName:@"ArmGroupLabel" inManagedObjectContext:context];
        armGroupLabel.name = armGroupLabelName;
        armGroupLabel.intervention = intervention;
        NSLog(@"Arm Group Label %@", armGroupLabel.name);
    }
    return;
}
@end
